package com.xrf;

public class PersonalInfo {
    private Long surnameAndPersonalName;
    private int namePinyin;
    private Long certificateType;
    private String idNumber;
    private Long sex;
    private Long dateOfBirth;
    private Double nationality;
    private String provinceOfHouseholdRegistration;
    private Double postalAddress;
    private Double contactNumber;
    private Double certificationBody;
    private String advisoryBody;
    private String workUnit;
    
    public PersonalInfo() {}
    
    public PersonalInfo(Long surnameAndPersonalName, int namePinyin, Long certificateType,
                       String idNumber, Long sex, Long dateOfBirth, Double nationality,
                       String provinceOfHouseholdRegistration, Double postalAddress,
                       Double contactNumber, Double certificationBody, String advisoryBody,
                       String workUnit) {
        this.surnameAndPersonalName = surnameAndPersonalName;
        this.namePinyin = namePinyin;
        this.certificateType = certificateType;
        this.idNumber = idNumber;
        this.sex = sex;
        this.dateOfBirth = dateOfBirth;
        this.nationality = nationality;
        this.provinceOfHouseholdRegistration = provinceOfHouseholdRegistration;
        this.postalAddress = postalAddress;
        this.contactNumber = contactNumber;
        this.certificationBody = certificationBody;
        this.advisoryBody = advisoryBody;
        this.workUnit = workUnit;
    }
    
    // Getter and Setter methods
    public Long getSurnameAndPersonalName() { return surnameAndPersonalName; }
    public void setSurnameAndPersonalName(Long surnameAndPersonalName) { this.surnameAndPersonalName = surnameAndPersonalName; }
    public int getNamePinyin() { return namePinyin; }
    public void setNamePinyin(int namePinyin) { this.namePinyin = namePinyin; }
    public Long getCertificateType() { return certificateType; }
    public void setCertificateType(Long certificateType) { this.certificateType = certificateType; }
    public String getIdNumber() { return idNumber; }
    public void setIdNumber(String idNumber) { this.idNumber = idNumber; }
    public Long getSex() { return sex; }
    public void setSex(Long sex) { this.sex = sex; }
    public Long getDateOfBirth() { return dateOfBirth; }
    public void setDateOfBirth(Long dateOfBirth) { this.dateOfBirth = dateOfBirth; }
    public Double getNationality() { return nationality; }
    public void setNationality(Double nationality) { this.nationality = nationality; }
    public String getProvinceOfHouseholdRegistration() { return provinceOfHouseholdRegistration; }
    public void setProvinceOfHouseholdRegistration(String provinceOfHouseholdRegistration) { this.provinceOfHouseholdRegistration = provinceOfHouseholdRegistration; }
    public Double getPostalAddress() { return postalAddress; }
    public void setPostalAddress(Double postalAddress) { this.postalAddress = postalAddress; }
    public Double getContactNumber() { return contactNumber; }
    public void setContactNumber(Double contactNumber) { this.contactNumber = contactNumber; }
    public Double getCertificationBody() { return certificationBody; }
    public void setCertificationBody(Double certificationBody) { this.certificationBody = certificationBody; }
    public String getAdvisoryBody() { return advisoryBody; }
    public void setAdvisoryBody(String advisoryBody) { this.advisoryBody = advisoryBody; }
    public String getWorkUnit() { return workUnit; }
    public void setWorkUnit(String workUnit) { this.workUnit = workUnit; }
    
    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("姓名:").append(surnameAndPersonalName).append("\t");
        builder.append("姓名拼音:").append(namePinyin).append("\t");
        builder.append("证件类型:").append(certificateType).append("\t");
        builder.append("证件号码:").append(idNumber).append("\t");
        builder.append("性别:").append(sex).append("\t");
        builder.append("出生日期:").append(dateOfBirth).append("\t");
        builder.append("国籍:").append(nationality).append("\t");
        builder.append("户籍所在省:").append(provinceOfHouseholdRegistration).append("\t");
        builder.append("通讯地址:").append(postalAddress).append("\t");
        builder.append("联系电话:").append(contactNumber).append("\t");
        builder.append("认证机构:").append(certificationBody).append("\t");
        builder.append("咨询机构:").append(advisoryBody).append("\t");
        builder.append("工作单位:").append(workUnit).append("\t");
        return builder.toString();
    }
}